Add statute-facing taxpayer ID primitives#7974
Add statute-facing taxpayer ID primitives#7974MaxGhenis wants to merge 2 commits intoPolicyEngine:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7974 +/- ##
===========================================
- Coverage 100.00% 93.66% -6.34%
===========================================
Files 1 10 +9
Lines 13 142 +129
Branches 0 8 +8
===========================================
+ Hits 13 133 +120
- Misses 0 5 +5
- Partials 0 4 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Closing — the companion data PR |
Summary
taxpayer_id_typeandhas_valid_ssnperson variableshas_tinresolve from explicit inputs or the new taxpayer ID primitive during migrationssn_card_typeWhy
Current federal rules use two distinct identification concepts:
TIN) rules for filer/dependent eligibility in several placesThis PR makes that split explicit in
policyengine-us, while preservinghas_itinas a temporary compatibility alias for existing callers.Companion data PR: PolicyEngine/policyengine-us-data#715